<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 15-3-24
  Time: 下午2:34
--%>


<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
    <meta name="layout" content="manage"/>
    <title>基础设置</title>
</head>

<body>
<div class="breadcrumbs" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
           基础设置
        </li>
        <li class="active"><g:link >订单管理</g:link></li>
        <li class="active">订单详情</li>
    </ul><!-- .breadcrumb -->
    <div class="nav-search" id="nav-search">

    </div><!-- #nav-search -->
</div>
<div class="page-content">
    <div class="page-header">
        <h1>
            订单管理
            <small>
                <i class="icon-double-angle-right"></i>
               维护订单信息
            </small>
        </h1>
    </div>
</div>
    <div>
        <input type="button" value="打印"> &nbsp;&nbsp;<input type="button" value="发货"> &nbsp;&nbsp;<input type="button" value="修改价格"> &nbsp;&nbsp;<input type="button" value="作废">
    </div>

    <div>订单号：${order?.id} &nbsp;&nbsp;下单时间：${order?.dateCreated}</div>

    <h2>商品信息</h2>
    <div>

        <g:each in="${order.items}">
            <table>
                <tr>
                    <th>作品缩略图</th>
                    <th>作品编号</th>
                    <th>作品名称</th>
                    <th>规格</th>
                    <th>单价</th>
                    <th>数量</th>
                    <th>小计</th>
                </tr>
                <tr>
                    <td><div><img src="../${it.photo?.smallImagePath}"></div><input type="button" value="下载原图"></td>
                    <td></td>
                    <td>${it.photo?.name}</td>
                    <td>${photobox.photo.PhotoFrame.findById(it.photoFrame.id).name}</td>
                    <td>￥${it.photoPrice}</td>
                    <td>${it.number}</td>
                    <td>￥${it.number*(it.photoPrice+it.framePrice+it.packingPrice+it.paperPrice)}</td>
                </tr>
            </table>
        </g:each>
    </div>
    <div>
        <div>订单备注：</div>
        <div>发票信息：</div>
    </div>
    <h2>价格信息</h2>
    <div>作品价格：￥</div>
    <div>配送费用：￥</div>
    <div>应付总金额：￥</div>

    <h2>收货信息</h2>
    <div>收货人：${order.user.username}</div>
    <div>联系方式：${photobox.account.Member.get(order.user.id).cellPhone}</div>
    <div>收货地址：${photobox.account.Address.get(order.user.address.id).address}</div>

</body>
</html>